package classByGZMZ.day02;

/**
 * @Author zsj
 * @Version 1.0
 * @Date 2024/3/5 15:55
 * @Description
 */

public class Fighter extends Person {

    private String queue;
    private String level;
    private int jobYear;


    public Fighter(String name, int age, String queue, String level, int jobYear) {
        super(name, age);
        this.queue = queue;
        this.level = level;
        this.jobYear = jobYear;
    }

    public String getQueue() {
        return queue;
    }

    public void setQueue(String queue) {
        this.queue = queue;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public int getJobYear() {
        return jobYear;
    }

    public void setJobYear(int jobYear) {
        this.jobYear = jobYear;
    }

    @Override
    public void job() {
        System.out.println("军人" + ":" + getName() + ",年龄:" + getAge() + "," + getQueue()+"," + getJobYear() + "年" + getLevel());
    }
}
